# -*- coding: utf-8 -*-
'''
#File    : sum_odd_of_100.py
#Author  : davie
#Time    : 2020/7/4 22:42
'''
"""
求100以内奇数和
"""
sum = 0
num = 1
while num <=100:
	if num % 2 == 1:
		sum += num
	num += 1
print('100以内的奇数之和是: {}'.format(sum))


# 缩进一般以4个空格为标准，不要用tab

